export function useDebounce(callback,delay=400){
    let timer=null
    return function(...args){
        clearTimeout(timer)
        timer=setTimeout(()=>{
            callback.apply(this,args)
        },delay)
    }
}